#!/bin/bash

echo "========================================"
echo "验证码登录功能测试脚本"
echo "========================================"
echo

echo "1. 测试发送验证码..."
curl -X POST "http://localhost:8083/login/code?phone=13800138000"
echo
echo

echo "2. 请查看控制台获取验证码，然后按回车键继续..."
read

echo "3. 请输入验证码: "
read CODE

echo "4. 测试验证码登录..."
curl -X POST "http://localhost:8083/login/phone?phone=13800138000&code=$CODE"
echo
echo

echo "5. 测试完成！"
echo "请检查返回的JWT令牌和用户信息" 